<?php

namespace Wgx\Admin\Test;

use Wgx\PdoEx\RwSplitConnNameGetterInterface;
use Wgx\PdoEx\SqlModeEnum;

final class DbConfig implements RwSplitConnNameGetterInterface
{
    // 主库连接名 的常量定义
    const RW_CONN_QL = 'ql';

    /**
     * 指示是否开启读写分离
     * @var bool
     */
    public static $rwSplit = true;

    public function getConnName($rwConnName, $sqlMode = SqlModeEnum::READ_WRITE)
    {
        return $rwConnName;
    }

}